package org.zhadoop.stream.cql.semanticanalyzer.parser.context;

import org.zhadoop.stream.cql.exception.SemanticAnalyzerException;
import org.zhadoop.stream.cql.semanticanalyzer.analyzecontext.expressiondesc.ExpressionDescribe;
import org.zhadoop.stream.cql.semanticanalyzer.parsecontextreplacer.ParseContextReplacer;
import org.zhadoop.stream.cql.semanticanalyzer.parsecontextwalker.ParseContextWalker;

/**
 * 关系表达式解析内容
 * @author zwd
 *
 */
public class RelationExpressionContext extends BaseExpressionParseContext{
	
	private String relationOperator;
	
	private BaseExpressionParseContext bitExpression;

	public String getRelationOperator() {
		return relationOperator;
	}

	public void setRelationOperator(String relationOperator) {
		this.relationOperator = relationOperator;
	}

	public BaseExpressionParseContext getBitExpression() {
		return bitExpression;
	}

	public void setBitExpression(BaseExpressionParseContext bitExpression) {
		this.bitExpression = bitExpression;
	}

	@Override
	public void walkChildAndReplace(ParseContextReplacer replacer) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected ExpressionDescribe createExpressionDesc() throws SemanticAnalyzerException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String toString() {
		return relationOperator + " " + bitExpression.toString();
	}

	@Override
	protected void walkChild(ParseContextWalker walker) {
		// TODO Auto-generated method stub
		
	}
	


}
